{include file="news/header.tpl"} {include file="module/add.header.tpl"}

<tr>
	<td></td>
	<td colspan="2"><textarea name="content" cols="80" id="editor1"
		rows="10"></textarea></td>
	<td></td>

</tr>

<tr>
	<td>{$lang['SUMMARY']}</td>
	<td><textarea cols="80" id="summary" name="summary" rows="5"
		style="width: 700px;" class="form-control"></textarea></td>
	<td></td>

</tr>



<tr>
	<td>{$lang['AUTHOR']}</td>
	<td><input type="text" name="author" value="{$user.username}" disabled class="form-control"></td>
	<td></td>

</tr>
<tr>
	<td>{$lang['KEYWORD']}</td>
	<td>
	<input type="text" name="keyword"  class="form-control">
	
	
	<td></td>

</tr>

<tr>
	<td>模板</td>
	<td><input type="text" name="template" class="input-xlarge" value=""></td>
	<td></td>

</tr>
<tr>
	<td></td>
	<td colspan=2 class=btnline align=center><input type="hidden" name="id"
		value="{$news.id}">
	<button type="submit" class="btn btn-primary"><i class="icon-ok"></i>{$lang['SAVE']}
	</button>
	<input type="reset" value="{$lang['RESET']}" class=btn disabled></td>
	<td></td>
</tr>

<tr>
	<td></td>
	<td colspan=2 class=btnline align=center></td>
	<td></td>
</tr>

</table>
</div>
<div class="tab-pane" id="tab2">
<table class="table">


	<tr>
		<td class="span2">{$lang['TITLECOLOR']}</td>
		<td class="span8"><input type="hidden" id="mycolor"
			class="colorPicker evo-cp0" /></td>

		<td></td>
	</tr>
	<tr>
		<td>{$lang['WEIGHT']}</td>
		<td><input type="text" name="sort" value="0" class="input-small"></td>

		<td></td>

	</tr>
	<tr>
		<td>{$lang['VIEWS']}</td>
		<td><input type="text" name="views" value="0" disabled class="input-small"></td>

		<td></td>

	</tr>
	<tr>
		<td>{$lang['PREMISSION']}</td>
		<td><select name="groupid" class="form-control">
			{foreach from=$group item=l key=key}

			<option value={$key} {if $key==0}selected{/if}>{$l}</option>
			{/foreach}

		</select></td>
		<td></td>

	</tr>

	<tr>
		<td>{$lang['PUBTIME']}</td>
		<td><input type="text" name="date" id="form_date"
			value="{$smarty.now|date_format:'%Y-%m-%d %H:%M'}"
			data-date-format="yyyy-mm-dd hh:ii"
			class="input-middle uneditable-input"></td>

		<td></td>

	</tr>

	<tr>
		<td>{$lang['STATUS']}</td>
		<td><input type="radio" name="status" value="0"
			{if $news.status==0}checked{/if}>{$lang['SHOW']} &nbsp;&nbsp;<input
			type="radio" name="status" value="1" {if $news.status==1}checked{/if}>{$lang['HIDDEN']}

		</td>

		<td></td>

	</tr>

	{foreach from=$extend item=l}
	<tr>
		{if $l.status==3}
		<td><input type="button" class="btn btn-primary"
			onclick="apd('{$l.key}');" value="增加">{$l.name}</td>

		<td id="{$l.key}">{section name=loop loop=$l.num} <input type="text"
			name="{$l.key}[]" class="form-control" value="0"> {/section} {else}
		
		
		<td>{$l.name}</td>

		<td>
		<div class="form-group col-md-5"><input type="text"
			class="form-control" name="{$l.key}">{$l.key}({$l.type})</div>
		{/if}</td>
		<td></td>

	</tr>
	{/foreach}

	<tr>
		<td>{$lang['TOOL']}</td>

		<td><script type="text/plain" id="upload_ue"></script> <input
			type="text" id="picture" name="cover" /><a href="javascript:void(0);"
			onclick="upImage();">{$lang['UPLOAD']}</a></td>
		<td id="yulan"></td>
	</tr>
	<tr>
		<td><input type="hidden" name="mid" value="{$module}"></td>
		<td>
		<button type="submit" class="btn btn-primary"><i class="icon-ok"></i>{$lang['SAVE']}
		</button>
		<input type="reset" value="{$lang['RESET']}" class=btn disabled></td>
		<td></td>

	</tr>
</table>

</form>
</div>
</div>
</div>
</div>
</div>



{literal}


<script type="text/javascript">
CKEDITOR.replace( 'editor1', {
	

});
$('#form_date').datetimepicker({
    language:  'zh-CN',
    format:'yyyy-mm-dd hh:ii',
    weekStart: 1,
    todayBtn:  0,
		autoclose: 1,
		todayHighlight: 1,
		startView: 2,
		minView: 2,
		forceParse: 0
});

		
</script>
{/literal} {include file="news/footer.tpl"}
